Crate leptos_icons

source ·
Expand description

githubcrates-iodocs-rs


A simple component that reactively renders an icon.

To render icons, this crate needs to be coupled with icondata, which is an icon source providing over 20,000 icons.

§Getting Started

In your Cargo.toml, include both leptos_icons and icondata:

[dependencies]
leptos_icons = { version = "{crate_version}" }
icondata = { version = "{icondata_version}" }

In your leptos project, use:

use leptos::*;
use leptos_icons::*;

let _ = view! {
    <Icon icon=icondata::BsFolder />
};

Complete examples are available on github.

Structs§

Functions§

  • The Icon component.